-
Notifications
You must be signed in to change notification settings - Fork 213
Add configuration to control existence of "go to <type>" on hover #1590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@yangdanny97 @kinto0 this is the pr for issue 1581 |
kinto0
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! thanks for working on this. a few suggestions:
- looks like CI is red for formatting, could you run the formatter?
- would you be able to update ide.mdx and lsp/readme.md with a description of the new setting?
- would you be able to add this config value to lsp/package.json so clients like vscode show it in the vscode settings?
|
thanks @kinto0 for the feedback I have made the required changes could you please review it and let me know if anything else needs to be done |
…ake flag visible in vs code and did formatting
yangdanny97
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review automatically exported from Phabricator review in Meta.
Summary
Fixes #1581
Adds configuration option to control whether hover tooltips display "Go to definition" links.
Following pattern from #1421.
Configuration
{ "python.analysis.showHoverGoToLinks": false }Default:
true(backward compatible)Changes
workspace.rs: Add config field to LspAnalysisConfigserver.rs: Read config and pass to hover implementationhover.rs: Conditionally show links based on configplayground.rs: Pass default value (true)hover.rs(test): Update test5 files changed, +18 insertions, -4 deletions
Testing
✅ Tested with config enabled/disabled
✅ Backward compatible (defaults to true)
✅ All existing tests pass